<?php
$this->breadcrumbs=array(
        'Relatórios',
	'Imprimir Questionário',
);
?>

<h1>Imprimir Questionário</h1>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'imprime-form-imprimeQuestionario-form',
	'enableAjaxValidation'=>false,
        'htmlOptions'=>array(
            'target'=>'_blank',
        ),
)); ?>

	<p class="note">Selecione o questionário que você deseja imprimir</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'id_questionario'); ?>
		<?php echo $form->dropDownList($model,'id_questionario',CHtml::listData(Questionario::model()->findAll('situacao = :situacao',array(':situacao'=>'1')), 'id_questionario', 'nome')); ?>
		<?php echo $form->error($model,'id_questionario'); ?>
	</div>

        <div class="row compactRadioGroup">
                <?php echo $form->radioButtonList($model,'tipo',array('0'=>'Resumido','1'=>'Completo'),array('separator'=>' | ')); ?>
        </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->